﻿using System.Collections.ObjectModel;
using Caliburn.PresentationFramework.ApplicationModel;
using CI.ViewModels.Diagramming;
using CI.ViewModels.Interfaces;
using Microsoft.Practices.ServiceLocation;
using GongSolutions.Wpf.DragDrop;

namespace CI.ViewModels
{
    public class ShellViewModel : MultiPresenterManager, IShellViewModel, IDropTarget
    {
        public ShellViewModel()
        {
            DiagramLayoutOptionsViewModel = new DiagramLayoutOptionsViewModel("Layout Options");
            SheetsViewModel = ServiceLocator.Current.GetInstance<ISheetsViewModel>();
        }

        public DiagramLayoutOptionsViewModel DiagramLayoutOptionsViewModel { get; set; }


        public ISheetsViewModel SheetsViewModel { get; private set; }

        public ObservableCollection<IViewModel> SelectorModels { get; private set; }

        public object SheetOptionsViewModel { get; set; }

        #region IDropTarget Members

        public void DragOver(IDropInfo dropInfo)
        {
            dropInfo.Effects = System.Windows.DragDropEffects.None;
            dropInfo.IsNotHandled = true;
        }

        public void Drop(IDropInfo dropInfo)
        {
            dropInfo.IsNotHandled = true;
        }

        #endregion
    }
}